makeThumbnailScaleUpAnimation

open fun makeThumbnailScaleUpAnimation(@NonNull source: View, @NonNull thumbnail: Bitmap, startX: Int, startY: Int): ActivityOptionsCompat(source)

Create an ActivityOptions specifying an animation where a thumbnail is scaled from a given position to the new activity window that is being started.

If the Intent this is being used with has not set its setSourceBounds, those bounds will be filled in for you based on the initial thumbnail location and size provided here.

Return

Returns a new ActivityOptions object that you can use to supply these options as the options Bundle when starting an activity.

Parameters

source

The View that this thumbnail is animating from. This defines the coordinate space for startX and startY.

thumbnail

The bitmap that will be shown as the initial thumbnail of the animation.

startX

The x starting location of the bitmap, relative to source.

startY

The y starting location of the bitmap, relative to source.